var express = require('express');
var router = express.Router();

// var corpConfig=[{name:''}];

router.get('/', function (req, res) {
    var ip = require('my-local-ip')();
    var local = true;
    //简单的通过ip判断是否是本地开发还是远程发布
    if (/192.168/.test(ip)) {
        local = true;
    } else {
        local = false;
    }

    res.render('index.jade', {
        user: req.user,
        local: local
    });
});

module.exports = router;
